Package com.cisco.pt.ipc.sim.impl
Class L2NatProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.L2NatProcessImpl
- All Implemented Interfaces:
IPCObject,L2NatProcess,Process
Information provided by the PKI file:
\class L2NatProcess
\brief L2NatProcess is the process that handles Nat for asa.
\example network().getDevice("Router0").getProcess("L2NatProcess")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionL2NatProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddInstance(String instanceName) Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:getNatInstance(String instanceName) Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:booleanremoveNatInstance(String instanceName) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
L2NatProcessImpl
public L2NatProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getInstanceNamesList
Information provided by the PKI file:
\brief Returns the instance names list. \return vector<string>, value is a list of the instance names.- Specified by:
getInstanceNamesListin interfaceL2NatProcess- Returns:
- List<String> Returns a List<String>
-
getNatInstance
Information provided by the PKI file:
\brief Returns the nat instance. \return L2NatInsance, value is the nat instance.- Specified by:
getNatInstancein interfaceL2NatProcess- Parameters:
instanceName- Takes in a parameter of instanceName- Returns:
- L2NatInstance Returns a L2NatInstance
-
removeNatInstance
Information provided by the PKI file:
\brief Removes the nat instance with the given name. \param instanceName, name of the nat instance to remove. \return bool, value is true if a instance with the given name was removed, false if not.- Specified by:
removeNatInstancein interfaceL2NatProcess- Parameters:
instanceName- Takes in a parameter of instanceName- Returns:
- boolean Returns a boolean
-
addInstance
Information provided by the PKI file:
\brief Adds a instance with the given name if no instance with that name already exists. \param instanceName, name of the nat instance to add. \return bool, value is true if the instance could be added, false if not.- Specified by:
addInstancein interfaceL2NatProcess- Parameters:
instanceName- Takes in a parameter of instanceName- Returns:
- boolean Returns a boolean
-
getTotalTranslation
public int getTotalTranslation()Information provided by the PKI file:
\brief Returns the total translation count. \return int, value is the total translation count.- Specified by:
getTotalTranslationin interfaceL2NatProcess- Returns:
- int Returns a int
-
getTotalInstanceAttached
public int getTotalInstanceAttached()Information provided by the PKI file:
\brief Returns the total instances attached. \return int, value is the total instances attached to the instance.- Specified by:
getTotalInstanceAttachedin interfaceL2NatProcess- Returns:
- int Returns a int
-
getAttachedNatInstanceList
Information provided by the PKI file:
\brief Returns the list of attached nat instances. \return vector<string>, value is the list of attached nat instances.- Specified by:
getAttachedNatInstanceListin interfaceL2NatProcess- Returns:
- List<String> Returns a List<String>
-
getTranslatedNatCount
public int getTranslatedNatCount()Information provided by the PKI file:
\brief Returns the total translated nat count. \return int, value is the total instances attached to the instance.- Specified by:
getTranslatedNatCountin interfaceL2NatProcess- Returns:
- int Returns a int
-
getArpFixupCount
public int getArpFixupCount()Information provided by the PKI file:
\brief Returns the Arp Fixup count. \return int, value is the Arp Fixup count.- Specified by:
getArpFixupCountin interfaceL2NatProcess- Returns:
- int Returns a int
-
getTotalNatCount
public int getTotalNatCount()Information provided by the PKI file:
\brief Returns the total nat count. \return int, value is the total nat count.- Specified by:
getTotalNatCountin interfaceL2NatProcess- Returns:
- int Returns a int
-